using StudentVideo.Shared.Constants;
using System.ComponentModel.DataAnnotations;

namespace StudentVideo.Shared.Dtos.User;

public class UserSignInDto {
   /// <summary>
   /// 账号
   /// </summary>
   /// <example>admin</example>
   [Required]
   [StringLength(20, MinimumLength = 5)]
   [RegularExpression(Pattern.AccountPattern)]
   public required string Account { get; set; }

   /// <summary>
   /// 昵称
   /// </summary>
   /// <example>admin</example>
   [StringLength(15, MinimumLength = 2)]
   public string? Nick { get; set; }

   /// <summary>
   /// 密码
   /// </summary>
   /// <example>12345678</example>
   [Required]
   [RegularExpression(Pattern.PasswordPattern)]
   public required string Pwd { get; set; }
}
